package dk.pekilidi.dod;

import org.apache.commons.lang.builder.*;

import java.util.Date;

/**
 * User: mpeki
 * Date: 12-12-2007
 * Time: 21:58:20
 */
public class Limb extends BaseObject {

    public enum LimbType implements DoDType {
        HEAD, CHEST, STOMACH, RIGHT_ARM, LEFT_ARM, RIGHT_LEG, LEFT_LEG
    }

    private int currentHP;
    private int maxHP;

    public Limb(){}

    public Limb(LimbType limbType, int originalValue){
        this.setType(limbType);
        this.currentHP = this.maxHP = originalValue;
    }

    public int getCurrentHP() {
        return currentHP;
    }

    public void setCurrentHP(int currentHP) {
        this.currentHP = currentHP;
    }

    public int getMaxHP() {
        return maxHP;
    }

    public void setMaxHP(int maxHP) {
        this.maxHP = maxHP;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).
                append("currentHP", currentHP).
                append("maxHP", maxHP).
                toString();
    }
}
